Instance Variables

The following instance variables are available globally.

  • Container of all the subviews.

    Declaration

    Swift

    public var contentView: UIView
  • This is the front view which can be scaled if scaleFactor was configured in ElongationConfig. Also to this view can be applied ‘parallax’ effect.

    Declaration

    Swift

    public var scalableView: UIView!
  • The view which comes from behind the cell when you tap on the cell.

    Declaration

    Swift

    public var bottomView: UIView!
  • View on top half of contentView. Add here all the views which wont be scaled and must stay on their position.

    Declaration

    Swift

    public var topView: UIView!
  • top constraint of bottomView.

    Declaration

    Swift

    public var bottomViewTopConstraint: NSLayoutConstraint!
  • Enable gestures on ElongationCell & ElongationHeader. These gestures will give ability to expand/dismiss the cell and detail view controller. Default value: true

    Declaration

    Swift

    public var isSwipeGesturesEnabled: Bool
  • Duration of detail view controller presention animation Default value: 0.3

    Declaration

    Swift

    public var detailPresetingDuration: TimeInterval
  • What elongationCell should do on touch

    Declaration

    Swift

    public var cellTouchAction: ElongationPreview.ElongationConfig.CellTouchAction
  • Enable UIPreviewIntearction on ElongationCell. Default value: true

    Declaration

    Swift

    public var forceTouchPreviewInteractionEnabled: Bool
  • Parallax effect factor. Default value: nil

    Declaration

    Swift

    public var parallaxFactor: CGFloat?
  • Should we enable parallax effect on ElongationCell (read-only). Will be true if separator not nil && greater than zero

    Declaration

    Swift

    public var isParallaxEnabled: Bool { get }
  • Duration of detail view controller dismissing animation Default value: 0.4

    Declaration

    Swift

    public var detailDismissingDuration: TimeInterval
  • topView scale value which will be used for making CGAffineTransform to expanded state Default value: 0.9

    Declaration

    Swift

    public var scaleViewScaleFactor: CGFloat
  • Offset of bottomView against topView Default value: 20

    Declaration

    Swift

    public var bottomViewOffset: CGFloat
  • Actual height of topView. Default value: 200

    Declaration

    Swift

    public var topViewHeight: CGFloat
  • bottomView height value Default value: 180

    Declaration

    Swift

    public var bottomViewHeight: CGFloat
  • Color of custom separator Default value: .white

    Declaration

    Swift

    public var separatorColor: UIColor
  • Should we create custom separator view (read-only). Will be true if separator not nil && greater than zero.

    Declaration

    Swift

    public var customSeparatorEnabled: Bool { get }
  • What elongationHeader should do on touch

    Declaration

    Swift

    public var headerTouchAction: ElongationPreview.ElongationConfig.HeaderTouchAction
  • Enable UILongPressGesture on ElongationCell. This gesture will allow to expand ElongationCell on long tap. By default, this option will be used on devices without 3D Touch technology. Default value: true

    Declaration

    Swift

    public var longPressGestureEnabled: Bool
  • Height of custom separator line between cells in tableView Default value: nil

    Declaration

    Swift

    public var separatorHeight: CGFloat?
  • IndexPath of expanded cell.

    Declaration

    Swift

    public var expandedIndexPath: IndexPath?
  • Should cell change it’s state to expand on tap. Default value: true

    Declaration

    Swift

    public var shouldExpand: Bool
  • Current view state. Default value: .normal

    Declaration

    Swift

    public var state: ElongationPreview.ElongationViewController.State { get set }
  • This is the front view which can be scaled if scaleFactor was configured in ElongationConfig. Also to this view can be applied ‘parallax’ effect.

    Declaration

    Swift

    @IBOutlet public var scalableView: UIView!
  • height constraint of bottomView.

    Declaration

    Swift

    @IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint!
  • View on top half of contentView. Add here all the views which wont be scaled and must stay on their position.

    Declaration

    Swift

    @IBOutlet public var topView: UIView!
  • top constraint of bottomView.

    Declaration

    Swift

    @IBOutlet public var bottomViewTopConstraint: NSLayoutConstraint!
  • Is this cell in expanded state.

    Declaration

    Swift

    open var isExpanded: Bool
  • The view which comes from behind the cell when you tap on the cell.

    Declaration

    Swift

    @IBOutlet public var bottomView: UIView!
  • height constraint of topView. This constraint will be changed according to ElongationConfig.

    Declaration

    Swift

    @IBOutlet public var topViewHeightConstraint: NSLayoutConstraint!
  • centerY constraint of view, to which must be applied parallax effect.

    Declaration

    Swift

    @IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint!
  • top constraint of topView. This constraint will be changed if ElongationConfig was configured for using custom separators.

    Declaration

    Swift

    @IBOutlet public var topViewTopConstraint: NSLayoutConstraint!
  • height constraint of view, to which must be applied parallax effect.

    Declaration

    Swift

    @IBOutlet public var parallaxViewHeightConstraint: NSLayoutConstraint!